/**
 * Copyright 2016 SAIC General Motors Corporation Ltd. All Rights Reserved.
 * <p>
 * This software is published under the terms of the SGM Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 *
 * @Project Name : spring-aop
 * @File name : SpringMvcTest.java
 * @Author : chen
 * @Date : 2016��12��21��
 * ----------------------------------------------------------------------------------
 * Date       Who       Version     Comments
 * 1. 2016��12��21��    chen    1.0
 * <p>
 * <p>
 * <p>
 * ----------------------------------------------------------------------------------
 */
package org.chw.mvc;

import org.chw.services.SpringTest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/mvc")
@Controller
public class SpringMvcTest {
    @Autowired
    @Qualifier("springTest")
    private SpringTest springTest;

    public void setSpringTest(SpringTest springTest) {
        this.springTest = springTest;
    }

    public SpringTest getSpringTest() {
        return springTest;
    }

    @RequestMapping("/say")
    public void say() {
        this.springTest.sayH();
        System.out.println("hh");
    }
}
